﻿@model WebSiteFool.Models.Article
@{
    ViewBag.Title = Model.Title;
}
@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
<script type="text/javascript">
    $().ready(function () {
        TJBlog.RichText._formatCode();
    });
</script>
<div class="b-margin-30">
@Html.ActionLink("Home", "Index", "Home", null, new { @class="title"}) > @Html.ActionLink("All Articles", "AllArticles", "Home", null, new { @class = "title" }) > @Model.Title
</div>
<section>
        <div class="article-title">@Model.Title
        <div class="comments-container" >
        <a href="#comment" class="title">@Model.Visits.Count Visits, @Model.Comments.Count Comments</a>
        </div></div>
        <div class="article-content">@Html.Raw(Model.Content)</div>
    </section>
<div class="post-end">
    <span><i></i>@Model.CreateDate</span>
</div>
<div id="comment">
    @Html.Partial("../Comment/_List", Model.Comments)
</div>
<div class="create-comment">
    @Html.Partial("../Comment/_Create", new WebSiteFool.Models.Comment() { Article = Model })
</div>
